// 获取某一个会话的详情信息
import request from "../request";
import type { ApiResponse } from "../request";
export interface SessionDetailsResponseType {
  id: string;
  sessionId: string;
  content: string;
  role: 0 | 1;
  createTime: string | null;
}
export const getSessionDetails = async (
  sessionId: string
): Promise<ApiResponse<SessionDetailsResponseType[]>> =>
  await request.get(`/ai/chat/messages/${sessionId}`);
